import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class ClothingItem {
    String brand;
    String color;
    String size;
    String material;

    String shortType;
    String shortColor;

    int idNumber;
    int minimumTemperature;
    int wears;
    int formality;

    void printInformation() {
        System.out.println("-- Basic information --");
        System.out.println("Brand: " + this.brand);
        System.out.println("Color: " + this.color);
        System.out.println("Size: " + this.size);
        System.out.println("Material: " + this.material);
        System.out.println("Short type: " + this.shortType);
        System.out.println("Short color: " + this.shortColor);
        System.out.println("ID: " + this.idNumber);
        System.out.println("Minimum temperature: " + this.minimumTemperature);
        System.out.println("Wears: " + this.wears);
        System.out.println("Formality: " + this.formality);
    }

    void printInformationWithoutNames(String outFileName) throws IOException {
        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(
                outFileName, true)));

        out.println(this.idNumber);
        out.println(this.brand);
        out.println(this.color);
        out.println(this.size);
        out.println(this.material);
        out.println(this.shortType);
        out.println(this.shortColor);
        out.println(this.minimumTemperature);
        out.println(this.wears);
        out.println(this.formality);

        out.close();
    }
}